package cn.codeforfun.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Package cn.codeforfun.entity
 * Project SpringBootCache
 * Author WangBin
 * Email bin.wang12@pactera.com
 * Created on 2017/6/8 15:13
 * version 1.0.0
 */
@Entity
@Table(name = "t_user")
public class User implements Serializable {
  private static final long serialVersionUID = -195536549389135488L;
  @Id
  @GeneratedValue(generator = "system-uuid")
  @GenericGenerator(name = "system-uuid", strategy = "uuid")
  private String id;
  private String username;
  private String password;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }
}
